import type { menuItem } from "@/components/types/SidebarNav";
import { defineStore } from "pinia";
import { ref } from "vue";

export const useMenusStore = defineStore('menus', () => {
    const menus = ref<menuItem[]>([
        { id: 1, name: '控制台', path: '/home/dashboard', routeName: 'dashboard' },
        { id: 2, name: '用户管理', path: '/home/users', routeName: 'users' },
        { id: 3, name: '角色管理', path: '/home/roles', routeName: 'roles' },
        { id: 4, name: '菜单管理', path: '/home/menus', routeName: 'menus' },
    ])
    return { menus }
}, {
    persist: true
})